// 通过interface还能定义索引类型

interface Indexlanguage {
    [index: number]: string
}

const frontLanguage : Indexlanguage = {
    0: 'html',
    1: '123'
}

interface ILanguage {
    [name: string]: number
}

